﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Volo.Abp.Validation;

namespace Wms.Manager.Wms.InventoryManagements.Dtos
{
    public class UpdateInventoryManagementDto
    {
        [Required(ErrorMessage = "存货名称不能为空")]
        [StringLength(50, ErrorMessage = "存货名称长度不能超过 50 字符")]
        public required string InventoryName { get; init; }

        [Required(ErrorMessage = "现存数量不能为空")]
        [Range(0, int.MaxValue, ErrorMessage = "现存数量不能为负数")]
        public required int CurrentQuantity { get; init; }

        [Required(ErrorMessage = "批次号不能为空")]
        [StringLength(200, ErrorMessage = "批次号长度不能超过 200 字符")]
        public required string BatchNumber { get; init; }

        [Required(ErrorMessage = "货位不能为空")]
        [StringLength(200, ErrorMessage = "货位长度不能超过 200 字符")]
        public required string LocationName { get; init; }

        [StringLength(500, ErrorMessage = "货位长度不能超过 500 字符")]
        public string? Remark { get; set; }
    }
}
